package fwk.impl;

import java.util.HashMap;
import java.util.Map;

import fwk.Controller;
import fwk.HandlerMapping;

public class BeanNameHandlerMapping implements HandlerMapping {
	private Map<String, Controller> controllerMap=new HashMap<String, Controller>();
	@Override
	public void addMap(String path, Controller controller) {
		controllerMap.put(path, controller);

	}

	@Override
	public Controller mapController(String uriPath) {
		
		return controllerMap.get(uriPath);
	}

}
